package com.product.system.imageCline.template;

import com.product.system.imageCline.factory.PicParseStrategyFactory;
import com.product.system.imageCline.strategy.ParsePicStrategy;

public abstract class PicParseTemplate {
    public ParsePicStrategy processPic(String imageType, String file){
        try {
            ParsePicStrategy strategy = PicParseStrategyFactory.createStrategy(imageType, file);
            return strategy;
        }catch (Exception e){
            e.printStackTrace();
            return null;
        }
    }
}
